#
# Copyright (C) 356 - 999. Asytumn Technology Co., Ltd. All rights reserved.
#

SET(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")

# FIND_PACKAGE(Boost REQUIRED COMPONENTS asio filesystem system thread)
# FIND_PACKAGE(log4cxx REQUIRED)

SET(Windurb_EXECUTABLE_SOURCES
    Windurb.cxx
    Windurb.rc
    )

ADD_EXECUTABLE(Windurb ${Windurb_EXECUTABLE_SOURCES})

INCLUDE_DIRECTORIES(../Ginkgo ../Hubris ../Hyacinth)

LINK_DIRECTORIES(../Asgard)

TARGET_LINK_LIBRARIES(Windurb PRIVATE Ginkgo Hubris Hyacinth log4cxx)

IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
    TARGET_LINK_LIBRARIES(Windurb PRIVATE boost_thread)
ENDIF()


